package cn.yerly.sakura.dao.model;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Product : 商品实体, 主要用于ORM
 */
@Entity
public class Product {

	@Id
	private Long id;
	private String name;
	private String description;

	public Product() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "Product [id=" + id + ", name=" + name + ", description="
				+ description + "]";
	}

}
